package com.uhu.sys;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uhu.sys.dto.req.ClientListReqDTO;
import com.uhu.sys.dto.req.StaffListReqDTO;
import com.uhu.sys.dto.res.ClientListResDTO;
import com.uhu.sys.dto.res.StaffListResDTO;
import com.uhu.sys.service.IClientService;
import com.uhu.sys.service.IStaffService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 客户表 前端控制器
 * </p>
 *
 * @author liujunjie
 * @since 2024-01-04
 */
@Api(tags = "客户管理接口")
@RestController
@RequestMapping("api/sys/client")
public class ClientController {
    @Autowired
    private IClientService iClientService;

    @ApiOperation("获取客户分页列表接口")
    @GetMapping("list")
    Page<List<ClientListResDTO>> getClientPageList(@RequestBody @Validated ClientListReqDTO clientListReqDTO) {
        return iClientService.getClientPageList(clientListReqDTO);
    }
}
